<template>
  <div class="good-f">
    
    <img :src="gooditem.imgUrl" alt="">
  
    <div class="good-info"> 
      <p>{{gooditem.title}}</p>
      <div>
        <span class="score">¥{{gooditem.price}}</span>
      </div>
      
      <div class="shop">
        <span class="iconfont" >&#x344b;</span>
      </div>
      <!-- <span class="s_num">{{gooditem.sales_number}}</span> -->
      
      <!-- <img :src="gooditem.assess" alt=""> -->
    </div>
  </div>
</template>

<script>
  export default {
    name: "GoodF",
    props: ['gooditem']
  }
</script>

<style scoped>

  @font-face {
    font-family: 'iconfont';
    src: url('../../../assets/font/iconfont.ttf?t=1622028041819') format('truetype');
  }
  .iconfont {
      font-family: "iconfont" !important;
      font-size: 20px;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
  }

  .good-f {
    padding-bottom: 80px;
    position: relative;
    width: 170px;
  }

  .good-f img {
    width: 100%;
    height: 170px;
  }

  .good-info {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    overflow: hidden;
    text-align: center;

    /* display: flex; */
  }

  .good-info .shop {
    color: #fff;
    background-color: #64b587;
    width: 33px;
    height: 33px;
    border-radius: 100%;
    float: right;
    text-align: center;
    
  }

  .good-info .shop span {
    position: relative;
    top: 5px;
  }

  .good-info p{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
    font-size: 18px;
    font-weight: bolder;
    /* position: relative;
    top: 1000px; */
  }

  .good-info .score {
    color: red;
    position: relative;
    top: 5px;
    bottom: 5px;
    font-weight: bold;
    font-size: 17px;
    /* flex: left; */
    float: left;

  }
  .good-info .s_num {
    color: rgba(77, 77, 73, 0.767);
    font-weight: 20px;
    font-size: 14px;
    position: relative;
    left: 32px;
    top: 5px;
    bottom: 5px;
  }

  .good-info img {
    height: 36px;
  }
</style>
